<template>
  <div class="home">
    <div class="home-wepper">
      <div class="banner">
        <div class="bg-wrapper">
          <div class="bg-wrapper"
               id="smoky-bg">
            <canvas>Your browser does not support HTML5 canvas.</canvas>
          </div>
        </div>
        <div class="text-wrapper">
          <!-- <div class="logo-wrapper">
            <img class="logo"
                 src="images/logo.png"
                 alt="">
          </div> -->
          <div style="background-color:rgba(255,255,255,.1);color:#fff;font-weight:bold;padding:40px 20px;border-radius:10px">
            <div class="introduce">
              <p>简单好用的前后台开发框架</p>
              <span>
                配合强大的代码生成平台，将开发效率成倍提高
              </span>
            </div>
            <p class="changelog">
<!--              <router-link to="/doc/changelog">-->
<!--                当前版本 v{{website.VERSION}}-->
<!--              </router-link>-->
              &nbsp; &nbsp;
              <a href="https://github.com/sunseagear/wind/issues">github问题反馈</a>
              &nbsp; &nbsp;
              <a href="https://gitee.com/sunseagear/wind/issues">gitee问题反馈</a>
            </p>
            <div class="button-wrapper">
              <router-link class="home-button"
                           to="/doc/start">
                <span>学习飞廉</span>
              </router-link>
              <router-link class="home-button"
                           to="/doc/wenyao/start">
                <span>学习文鳐</span>
              </router-link>
              <router-link class="home-button home-button--line"
                           to="/doc/cangjie/start">
                <span>学习仓颉</span>
              </router-link>
            </div>
          </div>
        </div>
      </div>
      <div class="home-page-wrapper  page1">
        <div class="home-page">
          <div class="page1-content">
            <div class="page1-item">
              <a href="#"
                 class="page1-item-link">
                <div class="page1-item-title">
                  <h2>易用灵活</h2>
                  <p>基于springboot2 mybatis plus 3 element-vue 2</p>
                </div>
              </a>
            </div>
            <div class="page1-item">
              <a href="#"
                 class="page1-item-link">
                <div class="page1-item-title">
                  <h2>高可读性</h2>
                  <p>不做过度封装，将技术原理原原本本的展示出来</p>
                </div>
              </a>
            </div>
            <div class="page1-item">
              <a href="#"
                 class="page1-item-link">
                <div class="page1-item-title">
                  <h2>丰富组件</h2>
                  <p>包含了大量的常用组件库以及丰富的插件库</p>
                </div>
              </a>
            </div>
          </div>
        </div>
      </div>
<!--
      <div class="home-page-wrapper page3">
        <div class="home-page">
          <h1 class="page3-title">赞助商</h1>
          <div class="page3-menu">
            <router-link to="/suporrt">
              <el-button plain>成为赞助商</el-button>
            </router-link>
          </div>
          <div class="page3-content">
            <div class="page3-item">
              <a href="https://www.yunjihuitong.com/"
                 target="_blank">
                <img src="/images/suporrt/unionstone.png"
                     height="33" />
                <p>云集汇通</p>
              </a>
            </div>
            <div class="page3-item">
              <a href="https://xunhuan.me/"
                 target="_blank">
                <p>XUNHUAN</p>
              </a>
            </div>
          </div>
          <h1 class="page3-title">友情链接</h1>
          <div class="page3-content">
            <div class="page3-item">
              <a href="https://gitee.com/"
                 target="_blank">
                <img src="/images/suporrt/gitee.svg"
                     height="33" />
              </a>
            </div>
            <div class="page3-item">
              <a href="https://pig4cloud.com"
                 target="_blank">
                <img src="/images/suporrt/pig.png"
                     width="40" />
                <p>PIG</p>
              </a>
            </div>
            <div class="page3-item">
              <a href="https://bladex.vip"
                 target="_blank">
                <img src="/images/suporrt/blade.png"
                     width="40" />
                <p>BLADE</p>
              </a>
            </div>
            <div class="page3-item">
              <a href="https://www.dreamlu.net/"
                 target="_blank">
                <img src="/images/suporrt/dream.png"
                     width="40" />
                <p>如梦技术</p>
              </a>
            </div>
            <div class="page3-item">
              <a href="https://ouxiang.me"
                 target="_blank">
                <p>OUXIANG</p>
              </a>
            </div>
            <div class="page3-item">
              <a href="http://www.evue.top"
                 target="_blank">
                <p>EVUE</p>
              </a>
            </div>

            <div class="page3-item">
              <a href="https://www.stylefeng.cn"
                 target="_blank">
                <p>Guns</p>
              </a>
            </div>
            <div class="page3-item">
              <a href="https://w.url.cn/s/AhtChxD"
                 target="_blank">
                <p>个人支付申请</p>
              </a>
            </div>

          </div>
        </div>
      </div>
-->
    </div>
  </div>
</template>

<script>
// import Flower from "@/components/Flower";
export default {
  name: "home",
  components: {
    // Flower
  },
  data () {
    return {
    };
  },
  created () {

  },
  mounted () {
    window.$('#smoky-bg').waterpipe({
      gradientStart: '#5AB1E8',
      gradientEnd: '#E32B2C',
      smokeOpacity: 0.1,
      smokeSize: 100,
      numCircles: 1,
      maxMaxRad: 'auto',
      minMaxRad: 'auto',
      minRadFactor: 0,
      iterations: 8,
      drawsPerFrame: 10,
      lineWidth: 2,
      speed: 10,
      bgColorInner: "#1494E3",
    });
  }
};
</script>

<style lang="scss">
$bg_main: #1494E3;

.home-page {
  padding: 100px 24px;
  width: 1200px;
  margin: auto;
}
.home {
  text-align: center;
}
.home-flower {
  position: absolute;
  top: 0;
  left: 0;
}
.home-button {
  background: #fff;
  background-color: $bg_main;
  color: #fff;
  width: 150px;
  height: 50px;
  margin: 10px;
  line-height: 50px;
  text-align: center;
  display: inline-block;
  font-size: 16px;
  box-sizing: content-box;
  font-weight: 500;
  transform: translateY(0);
  box-shadow: 0 0 0 rgba(16, 45, 164, 0);
  transition: all 0.3s;
  cursor: pointer;
  &:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.55);
  }
  &--line {
    background-color: transparent;
    border: 1px solid #fff;
    color: #fff;
    margin-left: 24px;
    &:hover {
      background: $bg_main;
      border-color: transparent;
    }
  }
}
.home-page-wrapper {
  width: 100%;
  position: relative;
  overflow: hidden;
  .title {
    font-size: 32px;
    line-height: 45px;
    margin: 0 auto 64px;
    text-align: center;
    color: #314659;
  }
}

.page1 {
  background-color: #fff;
  &-content {
    margin: 0 auto;
    width: 1000px;
    display: flex;
    justify-content: space-around;
  }
  &-item {
    margin: 0 20px;
    &-title {
      h2 {
        margin-bottom: 20px;
        color: #1494E3;
        font-size: 1.5em;
        font-weight: 400;
        padding: 0.5em 0;
      }
      p {
        line-height: 25px;
        color: #7f8c8d;
        word-spacing: 0.05em;
      }
    }
  }
}
.page2 {
  background: #edf1f5;
  .bg {
    width: 1401px;
    height: 1843px;
    position: absolute;
    top: 0;
    left: 50%;
    margin-left: -700px;
  }
  &-content {
    padding: 0 20px;
    text-align: left;
    line-height: 30px;
    text-indent: 2em;
    color: #666;
  }
}
.page3 {
  padding-bottom: 20px;
  &-content {
    padding: 40px 0;
    margin: 0 auto 40px auto;
    width: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
  }
  &-menu {
    margin-top: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
  }
  &-item {
    padding: 0px 10px;
    margin: 0 10px 30px 10px;
    box-sizing: border-box;
    border-radius: 2px;
    a {
      color: #999;
      display: flex;
      align-items: center;
    }
    img {
      margin-right: 5px;
    }
    p {
      font-weight: 600;
      font-size: 26px;
    }
  }
}
.page4 {
  background: $bg_main;
  color: #fff;
  min-height: 292px;
  text-align: center;
  .bg {
    width: 1440px;
    height: 558px;
    position: absolute;
    top: 0;
    left: 50%;
    margin-left: -720px;
  }
  p {
    margin: 0 auto 40px;
    font-size: 14px;
    line-height: 20px;
    max-width: 930px;
  }
}
.home-header {
  background-color: rgba(0, 0, 0, 0.2);
  .header-wrapper {
    width: 1200px;
  }
}
.banner {
  padding-top: 100px;
  color: #fff;
  position: relative;
  background-color: #1494E3;
  height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  .bg-wrapper {
    position: absolute;
    opacity: 0.8;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
  }
  .logo-wrapper {
    width: 160px;
    margin: auto;
    position: relative;
    img {
      width: 100%;
      height: 100%;
    }
  }
  .introduce {
    font-family: "Raleway", sans-serif;
    max-width: 587px;
    margin: 30px auto 30px;
    span {
      line-height: 25px;
      font-size: 17px;
    }
    p {
      margin-bottom: 20px;
      font-size: 36px;
    }
  }
  .text-wrapper {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    transform: translate(-50%, -50%);
  }
  .changelog {
    margin-bottom: 60px;
    color: #fff;
    font-size: 13px;
    span {
      margin-right: 10px;
    }
    a {
      color: #fff;
      font-size: 13px;
      text-decoration: underline;
    }
  }
}
</style>
